efform_onload = function ()
{
	show31(); 
};   
function show31()
{
	   // 基于准备好的dom，初始化echarts图表
	   var myChart = echarts.init(document.getElementById('main31'));  
	   var option = {
			   title : {
			        text: '罚款统计',
			        subtext: '矿山',
			        x:'center'
			    },
			    tooltip : {
			        trigger: 'item',
			        formatter: "{a} <br/>{b} : {c} ({d}%)"
			    },
			    legend: {
			        orient : 'vertical',
			        x : 'left',
			        data:['打通一矿','松藻煤矿','石壕煤矿','同华煤矿','渝阳煤矿','逢春煤矿']
			    },
			    toolbox: {
			        show : true,
			        feature : {
			            mark : {show: true},
			            dataView : {show: true, readOnly: false},
			            magicType : {
			                show: true, 
			                type: ['pie', 'funnel'],
			                option: {
			                    funnel: {
			                        x: '25%',
			                        width: '50%',
			                        funnelAlign: 'left',
			                        max: 1548
			                    }
			                }
			            },
			            restore : {show: true},
			            saveAsImage : {show: true}
			        }
			    },
			    calculable : true,
			    series : [
			        {
			            name:'部门',
			            type:'pie',
			            radius : '55%',
			            center: ['50%', '60%'],
			            data:[
			                {value:310, name:'打通一矿'},
			                {value:234, name:'松藻煤矿'},
			                {value:135, name:'石壕煤矿'},
			                {value:1548, name:'同华煤矿'},
			                {value:1548, name:'渝阳煤矿'},
			                {value:1548, name:'逢春煤矿'}
			            ]
			        }
			    ]
	   };  
	   myChart.setOption(option);   
} 